<template>
  <div class="p-2">
    <addOrEditEnterprise
      v-if="merchantId"
      :merchantId="merchantId"
    ></addOrEditEnterprise>
  </div>
</template>

<script setup name="operatorEdit" lang="ts">
import addOrEditEnterprise from '../components/addOrEditEnterprise.vue';
const route = useRoute();
const merchantId = ref<any>('');
onMounted(() => {
  if (route.query.id) {
    merchantId.value = route.query.id;
  }
});
</script>

<style lang="scss" scoped>
</style>
